
// 启动方法
import { MOUNTED,  NOT_MOUNTED} from "../application/app.helpers.js";

export  function  toMountPromise(app){
    return Promise.resolve().then(() => {
        if (app.status !== NOT_MOUNTED) {

            return app;
        }


        return app.mount(app.customProps).then(()=>{
            app.status=MOUNTED // 挂载完成
            return app
        });
    })
}